package com.xuanyang.dormrepair.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @AUTHOR soft
 * @DATE 2019/5/19 1:57
 * @DESCRIBE 建议
 */
@Data
@Accessors(chain = true)
@TableName("advise")
public class Advise {
    @TableId
    private Integer id;

    private Integer floorId;

    @TableField(exist = false)
    private FloorRoom room;

    private String name;

    private Boolean hideName;

    private String content;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date datetime;
}
